Android Debug Bridge
Previous

Name
  AndroidDebugBridge

Parent
  Android Debug Bridge

Description
  MIT License Information can be found at:
https://en.wikipedia.org/wiki/MIT_License
Copyright (c) 2024 Clay B. Carley III
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Name.......: AndroidDebugBridge.pas
Date.......: 09/02/2024
Description: This contains a Class that encapsulates the Android Debug
Bridge (ADB). It was adapted from an Ada "library" used to copy music and
audio book files to the phone (and delete them later).
Android Debug Bridge must be installed on your computer for this to work.
Note: you will have to change adbExeLocation so that it contains the correct
path to adb.exe.
This has been tested using ADB version 1.0.41, Delphi 11.3 Community Edition
and Moto G Stylus 5G (2022) phone using Android 13.
Thanks to Angus Roberston for posting procedure GetConsoleOutput on
https://en.delphipraxis.net/topic/2372-running-commandline-app-and-capturing-output/
February 10, 2020. I have modified it and used it in the code below.

Author
  Clay B. Carley III

Version
  1.0

Types
 
Type Description
strList (+) Define list of strings

Constants
 
Constant Description
adbExeLocation (+) Change this to where your adb.exe resides
RootDirectory (+) This is the root directory of the phone

Variables
 
Variable Description
shellResults (+) To contain the lines of output of an external executable

Classes
 
Class Description
TAndroidDebugBridge (+) Class wrapper for Android Debug Bridge

Legend
 
Symbol Visibility
- Private
# Protected
+ Public
* Published
A Automated
S Strict

Android Debug Bridge
Previous


Add your copyright informations and link here.
Created with DelphiCodeToDoc. To obtain the latest revision, please visit http://dephicodetodoc.sourceforge.net/